<?php
/**
 * @notes:
 * @return
 * @author: admin
 * @date: 2024/9/10
 */
namespace addons\shopro\service\remittance;

use app\admin\model\shopro\Remittance;

class RemittanceService
{


    protected $query = null;
    protected $format = null;

    public function __construct(\Closure $format = null, \think\db\Query $query = null)
    {
        $this->query = $query ?: new Remittance();
        $this->relationSearch = true;
        $this->format = $format;
    }

    /***
     * 获取兑换通道列表
     * @notes:
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     * @author: 小谢
     * @date: 2024/9/10 11:45
     */
    public function getList()
    {
        $data=$this->query->where(['is_show'=>1])->select();

        return $data;
    }


}